package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.MOrderformMapper;
import com.ruoyi.system.domain.MOrderform;
import com.ruoyi.system.service.IMOrderformService;

/**
 * 销售订单管理Service业务层处理
 * 
 * @author lzt
 * @date 2024-05-09
 */
@Service
public class MOrderformServiceImpl implements IMOrderformService 
{
    @Autowired
    private MOrderformMapper mOrderformMapper;

    /**
     * 查询销售订单管理
     * 
     * @param number 销售订单管理主键
     * @return 销售订单管理
     */
    @Override
    public MOrderform selectMOrderformByNumber(Long number)
    {
        return mOrderformMapper.selectMOrderformByNumber(number);
    }

    /**
     * 查询销售订单管理列表
     * 
     * @param mOrderform 销售订单管理
     * @return 销售订单管理
     */
    @Override
    public List<MOrderform> selectMOrderformList(MOrderform mOrderform)
    {
        return mOrderformMapper.selectMOrderformList(mOrderform);
    }

    /**
     * 新增销售订单管理
     * 
     * @param mOrderform 销售订单管理
     * @return 结果
     */
    @Override
    public int insertMOrderform(MOrderform mOrderform)
    {
        return mOrderformMapper.insertMOrderform(mOrderform);
    }

    /**
     * 修改销售订单管理
     * 
     * @param mOrderform 销售订单管理
     * @return 结果
     */
    @Override
    public int updateMOrderform(MOrderform mOrderform)
    {
        return mOrderformMapper.updateMOrderform(mOrderform);
    }

    /**
     * 批量删除销售订单管理
     * 
     * @param numbers 需要删除的销售订单管理主键
     * @return 结果
     */
    @Override
    public int deleteMOrderformByNumbers(Long[] numbers)
    {
        return mOrderformMapper.deleteMOrderformByNumbers(numbers);
    }

    /**
     * 删除销售订单管理信息
     * 
     * @param number 销售订单管理主键
     * @return 结果
     */
    @Override
    public int deleteMOrderformByNumber(Long number)
    {
        return mOrderformMapper.deleteMOrderformByNumber(number);
    }
}
